// var Game = require('../games/21point/game.js')();


// var creatLink = function(req, res, next) {
//     var userName = req.params.name;
//     res.writeHead(200, {
//         "Content-Type": "text/event-stream",
//         "Cache-Control": "no-cache",
//         "Connection": "keep-alive"
//     });
//     res.write("retry: 10000\n");
//     res.write("event: connecttime\n");
//     res.write("data: " + (new Date()) + "\n\n");
//     res.write("event: systemMessage\n");
//     res.write("data: 连接成功\n\n");
//     var user = Game.user.creat(userName, res);
//     var userId = user.getId();
//     res.write("event: userId\n");
//     res.write("data: " + userId + "\n\n");
//     setInterval(function() {
//         res.write("event: userNum\n");
//         res.write("data: " + Game.user.length() + "\n\n");
//         res.write("event: roomNum\n");
//         res.write("data: " + Game.room.length() + "\n\n");
//     }, 3000);
//     req.connection.addListener("close", function() {
//         Game.user.delete(userId, function() {});
//         Game.clearRooms();
//     }, false);
// };

module.exports = {
//     'GET /api/21point/creatLink/:name': creatLink,
//     'POST /api/planeb/creatroom': creatRoom,
//     'GET /api/planeb/getRooms': getRooms,
//     'POST /api/planeb/joinRoom': joinRoom,
//     'POST /api/planeb/leaveRoom': leaveRoom,
//     'POST /api/planeb/sendMessageByRoom': sendMessageByRoom,
//     'POST /api/planeb/readyGame': readyGame,
//     'POST /api/planeb/attack': attack,
//     'POST /api/planeb/cancelReady': cancelReady,
//     'POST /api/planeb/verification': verification,
};